package net.esj.basic.core.view.tools.browser;

import java.io.UnsupportedEncodingException;


public class DefaultFirefoxURLEncoder extends AbstractBrowserURLEncoder {

	public static DefaultFirefoxURLEncoder INSTANCE = new DefaultFirefoxURLEncoder();
	
	private DefaultFirefoxURLEncoder() {
		super();
	}

	@Override
	String encode(String str) {
		try {
			return  new String(str.getBytes("utf-8"),"iso-8859-1");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return str;
	}

}
